package routers

import (
	"github.com/gin-gonic/gin"
	"new/middleWare"
)

func sysNoCheckRoleRouter(r *gin.RouterGroup) {
	r = r.Group("/apis")
	// GetStudent(r)
	// GetMedical_record(r)
	// GetPhysical_exam(r)
	GetFamily_member(r)
}
func InitRouter() *gin.Engine {
	r := gin.New()
	r.Use(gin.Logger())
	r.Use(gin.Recovery())
	r.Use(middleWare.Cors())

	g := r.Group("/system")
	sysNoCheckRoleRouter(g)
	return r
}
